<!DOCTYPE html>
<html>
<head>
	<title>管理轮播图</title>
<link rel="stylesheet" type="text/css" href="__CSS__/main.css">
<script type="text/javascript" src="__JS__/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="__JS__/script.js" ></script>
<script type="text/javascript" src="__JS__/jquery.js"></script>
<script type="text/javascript" src="__JS__/jquery.validate.min.js" ></script>
</head>
<body class="clear">
<!-- 头部区域 -->
<div id="nav_div">
	<!-- logo -->
	<img src="__IMG__/people.png" id="people">
	<h2 class="mesH">论坛后台管理</h2>
	<div class="mesWec">
		<span>欢迎您：{:session('aNick')}</span>
	</div>
</div>
<!-- 导航栏区域 -->
<div id="mesNavBar">
	<ul>
		<li><a href="{:url('deal/mesDeal')}">帖子管理</a></li>
		<li><a href="{:url('deal/userDeal')}">用户管理</a></li>
		<li><a href="{:url('deal/secDeal')}">版块管理</a></li>
		<li><a href="{:url('bindeal/binsecdeal')}">回收站管理</a></li>
		<li><a href="{:url('advdeal/advDeal')}">广告管理</a></li>
		<li><a href="{:url('advdeal/boxDeal')}">轮播图管理</a></li>
		<li><a href="{:url('admin/apa')}">修改密码</a></li>
		<li><a href="{:url('admin/alogOut')}">注销</a></li>
		<li><a href="{:url('../forum/index/index')}">论坛前台</a></li>
	</ul>
</div>

<!-- 内容区域 -->
<div id="con_div" style="border: 0;height:271px;">
	<div class="m-banner">
		<div class="mb-img fl clearfix">
			<div id="mb-ibox" class="mb-ibox fl">
				{volist name="boxrend" id="boxRend"}
				{compare name="boxRend.b_aok" value='2'}
				<a href="" style="display:block;"><img src="__BOX__/{$boxRend.b_img}" alt="111" / style="width: 590px;height: 239px;"></a>
				{else\}
				{/compare}
			{/volist}
			</div>
			<ul id="mb-inav" class="mb-inav fl">
				{volist name="boxrend" id="boxRend"}
				{compare name="boxRend.b_aok" value='2'}
				<li><a></a></li>
				{else\}
				{/compare}
				{/volist}
			</ul>
		</div>
		<div id="mb-itxt" class="mb-news fl">	
			{volist name="boxrend" id="boxRend"}
			{compare name="boxRend.b_aok" value='2'}
			<div style="display:block;">
				<h2><a href="">{$boxRend.b_title}</a></h2>
				<p>{$boxRend.b_content}</p>
			</div>
			{else\}
			{/compare}
			{/volist}
		</div>
	</div>
</div>
<!-- 版块管理区域 -->
<div class="daohanglan" style="font-weight:bold">
	<div>首页轮播图管理</div>
	<form action="{:url('advdeal/boxAdd')}" method="post" enctype="multipart/form-data" style="margin:0;">
		<input type="submit" name="add" value="添加新版块">
	</form>
	<form action="{:url('advdeal/boxDeal')}" method="get" enctype="multipart/form-data">
		<input type="text" style="margin-left:52%" name="find">
		<input type="submit" value="搜索" id="sousuo">
	</form>
</div>
<div class="mesForm">
	<form action="">
		<table style="margin:20px 0;width: 100%;">
			<tr>
				<td class="mesTdf" style="font-weight:bold">序号</td>
				<td class="mesTd" style="font-weight:bold">图片</td>
				<td class="mesTd" style="font-weight:bold;padding:5px 0;width: 138px;">标题|发布时间</td>
				<td class="mesTd" style="font-weight:bold;padding:5px 10px;">文字介绍</td>
				<td class="mesTd" style="font-weight:bold">指向mid</td>
				<td class="mesTd" style="font-weight:bold">操作</td>
			</tr>
			{volist name="box" id="boxRow"}
			<tr>
				<td class="mesTdf">{$num++}</td>
				<td class="mesTd" style="padding: 10px 0;"><img width="231" height="78" src="__BOX__/{$boxRow.b_img}" alt=""></td>
				<td class="mesTd" style="display:flex;flex-direction:column;width: 96px;padding: 14px;">
					<span>{$boxRow.b_title}</span>
					<p>{$boxRow.b_createat | date="Y-m-d"}</p>
				</td>
				<td class="mesTd" style="padding: 10px 0;">{$boxRow.b_content}</td>
				<td class="mesTd" style="padding: 10px 0;">{$boxRow.m_id}</td>
				<td class="mesTd" style="width: 317px;padding: 5px 0;">
					<a href="{:url('advdeal/boxInfo',['b_id'=>$boxRow.b_id,])}">修改      </a>|
					{compare name="boxRow.b_aok" value='2'}
					<a href="{:url('advdeal/boxOk',['b_id'=>$boxRow.b_id,'b_aok'=>'2'])}" style="color:red">审核通过      </a>|
					<a href="{:url('advdeal/boxOk',['b_id'=>$boxRow.b_id,'b_aok'=>'1'])}">暂停使用      </a>|
					{else/}
					{compare name="boxRow.b_aok" value='1'}
					<a href="{:url('advdeal/boxOk',['b_id'=>$boxRow.b_id,'b_aok'=>'2'])}">审核通过      </a>|
					<a href="{:url('advdeal/boxOk',['b_id'=>$boxRow.b_id,'b_aok'=>'1'])}" style="color:red">暂停使用      </a>|
					{else/}
					<a href="{:url('advdeal/boxOk',['b_id'=>$boxRow.b_id,'b_aok'=>'2'])}" style="color:red">审核通过（待审核）</a>|
					<a href="{:url('advdeal/boxOk',['b_id'=>$boxRow.b_id,'b_aok'=>'1'])}">暂停使用      </a>|
					{/compare}
					{/compare}
					<a href="{:url('advdeal/boxdeal',['b_id'=>$boxRow.b_id])}">删除</a>
				</td>
			</tr>
			{/volist}
		</table>
	</form>
</div>
<div id="view_page">{$page|raw}</div>
</body>
</html>